package com.bupt.dto.network;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode
@Data
public class OtnLinkDto {
    String id;
    String name;
    String code;
    private Node sourceNode;
    private Node targetNode;
    Long length;
    int year;
    Long size;
   String  rate;
    String loadOnLayer;

    public OtnLinkDto(String id, String name, String code, Node sourceNode,
                      Node targetNode, Long length, int year, Long size, String rate, String loadOnLayer) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.sourceNode = sourceNode;
        this.targetNode = targetNode;
        this.length = length;
        this.year = year;
        this.size = size;
        this.rate = rate;
        this.loadOnLayer = loadOnLayer;
    }
}
